package top.z.work.module.system.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.z.work.framework.orm.core.BaseEntity;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 系统用户实体类
 *
 * @author zaoangod
 * @since 2024-07-25
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Table(value = "system_user")
public class SystemUser extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    // 数据主键
    @Id
    private Long          identity;
    // 部门ID
    private Long          deptId;
    // 用户账号
    private String        username;
    // 用户密码
    private String        password;
    // 昵称
    private String        nickname;
    // 密码盐
    private String        salt;
    // 手机号
    private String        mobile;
    // 帐号状态(0.正常;1.停用)
    private Integer       status;
    // 登录IP地址
    private String        loginIp;
    // 登录时间
    private LocalDateTime loginTime;

}
